Imports AppliedRecognition.Util
Public Class AboutForm
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents btnOK As System.Windows.Forms.Button
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents IconImage1 As AppliedRecognition.Speech.QuickSwitch.IconImage
    Friend WithEvents LinkLabel1 As System.Windows.Forms.LinkLabel
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.btnOK = New System.Windows.Forms.Button
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.IconImage1 = New AppliedRecognition.Speech.QuickSwitch.IconImage
        Me.LinkLabel1 = New System.Windows.Forms.LinkLabel
        Me.SuspendLayout()
        '
        'btnOK
        '
        Me.btnOK.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.btnOK.Location = New System.Drawing.Point(381, 105)
        Me.btnOK.Name = "btnOK"
        Me.btnOK.Size = New System.Drawing.Size(75, 29)
        Me.btnOK.TabIndex = 0
        Me.btnOK.Text = "&Ok"
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(48, 1)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(408, 23)
        Me.Label2.TabIndex = 2
        Me.Label2.Text = "Copyr"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(51, 26)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(169, 23)
        Me.Label5.TabIndex = 5
        Me.Label5.Text = "Label5"
        '
        'IconImage1
        '
        Me.IconImage1.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer))
        Me.IconImage1.ImageIcon = Nothing
        Me.IconImage1.Location = New System.Drawing.Point(0, 0)
        Me.IconImage1.Name = "IconImage1"
        Me.IconImage1.Size = New System.Drawing.Size(48, 48)
        Me.IconImage1.TabIndex = 9
        '
        'LinkLabel1
        '
        Me.LinkLabel1.Location = New System.Drawing.Point(267, 27)
        Me.LinkLabel1.Name = "LinkLabel1"
        Me.LinkLabel1.Size = New System.Drawing.Size(189, 23)
        Me.LinkLabel1.TabIndex = 10
        Me.LinkLabel1.TabStop = True
        Me.LinkLabel1.Text = "codeplex.com/QuickSwitch"
        '
        'AboutForm
        '
        Me.AcceptButton = Me.btnOK
        Me.AutoScaleBaseSize = New System.Drawing.Size(8, 19)
        Me.CancelButton = Me.btnOK
        Me.ClientSize = New System.Drawing.Size(462, 137)
        Me.Controls.Add(Me.LinkLabel1)
        Me.Controls.Add(Me.IconImage1)
        Me.Controls.Add(Me.Label5)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.btnOK)
        Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Name = "AboutForm"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
        Me.Text = "AboutForm"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub AboutForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Util.Misc.EnableVisualStyles(Me)

        Me.Text = "About " + My.Application.Info.Description
        Me.Icon = QSRes.QSIcon
        IconImage1.ImageIcon = QSRes.QSIcon

        Label2.Text = My.Application.Info.Copyright
        Label5.Text = "Version: " + My.Application.Info.Version.ToString


    End Sub

    Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
        Me.Close()
    End Sub

    Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start("http://www.codeplex.com/QuickSwitch")
    End Sub
End Class
